package net.wds.ssbus.modules.ssbus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.wds.ssbus.modules.dict.entity.TbBaseDictitemEntity;
import net.wds.ssbus.modules.ssbus.pojo.TbSsbusChannelEntrty;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TbSsbusChannelMapper extends BaseMapper<TbSsbusChannelMapper> {

    TbSsbusChannelEntrty getById(Long id);

    void save(TbSsbusChannelEntrty tbSsbusChannelEntrty);

    void update(TbSsbusChannelEntrty tbSsbusChannelEntrty);

    void delete(Long id);
    IPage<TbSsbusChannelEntrty> list(Page<TbSsbusChannelEntrty> page, String  name,String queryid);

    void deletes(Long[] id);

    List<TbBaseDictitemEntity> dbtype();

    List<TbBaseDictitemEntity> active();

    String dbtypeString(long dbtype);

    void updateActive(Integer id, Integer active);

    List<TbSsbusChannelEntrty> getTbSsbusChannelList();

    TbBaseDictitemEntity queryType(String queryType);
}
